package com.runrunfast.fxj.service;

import com.runrunfast.fxj.entity.SysResources;
import com.baomidou.mybatisplus.extension.service.IService;
import com.runrunfast.fxj.form.SysResourcesForm;
import com.runrunfast.fxj.form.SysResourcesUpdateForm;
import com.runrunfast.fxj.vo.SysResourcesTreeVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 权限表 服务类
 * </p>
 *
 * @author 陈胤训
 * @since 2019-03-12
 */
public interface ISysResourcesService extends IService<SysResources> {

    List<SysResources> listByUserId(Integer userId);

    List<SysResourcesTreeVo> tree();

    void add(SysResourcesForm sysResourcesForm);

    boolean updateInfo(SysResourcesUpdateForm updateForm);

    List<SysResourcesTreeVo> TreeListByRoleId(Integer roleId);

    void delete(SysResources byId);
}
